package com.neuedu.javase;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-09-23 9:01
 * 描述 : 多维数组的操作
 */
public class MyArray2 {
    public static void main(String[] args) {


        //        String  names1[] = new String[34];
        //        String  names2[] = new String[34];
        //        String  names3[] = new String[34];
        //        String  names4[] = new String[34];


        /**
         * 二维数组的声明
         */
        //        String names[][] = new String[8][10];


        //        String names[][] = new String[8][10];
        //        System.out.println("names[0] = " + names[0]);

//        String names[][] = new String[8][];
//        names[0] = new String[10];
//        names[1] = new String[5];
//        System.out.println("names[0] = " + names[0]);


        String names[][] = {
                {"张三","李四","王五"},
                {"张飞","刘备","诸葛亮"},
                {"松江","李逵","黑旋风","石阡","林冲"}

        };

        for (int i = 0; i < names.length; i++) {
            String classNames[] = names[i];
            for (int j = 0; j < classNames.length; j++) {
                System.out.print("classNames[j] = " + classNames[j]+"\t");
            }
            System.out.println();
        }














    }
}
